package com.lwd.boot.study;

import com.lwd.boot.study.auto.AutoConfigurationScanServiceImpl;
import com.lwd.boot.study.auto.AutoConfigurationService;
import com.lwd.boot.study.service.TestService;
import org.springframework.boot.SpringApplication;
import org.springframework.boot.autoconfigure.SpringBootApplication;
import org.springframework.context.ConfigurableApplicationContext;

/**
 * @Author: 刘东（挂兰）
 * @Date: 2023/12/31 19:23:18
 * @Description:
 */
@SpringBootApplication
public class MainStart {
	public static void main(String[] args) {
		ConfigurableApplicationContext run = SpringApplication.run(MainStart.class, args);
//		TestService bean = run.getBean(TestService.class);
//		System.out.println("bean = " + bean);

		AutoConfigurationService autoConfigurationService = run.getBean(AutoConfigurationService.class);
		System.out.println("autoConfigurationService = " + autoConfigurationService);
		AutoConfigurationScanServiceImpl autoConfigurationScanService = run.getBean(AutoConfigurationScanServiceImpl.class);
		System.out.println("autoConfigurationScanService = " + autoConfigurationScanService);
		System.out.println("end..");
	}
}
